#ifndef __MYSTRING_H__
#define __MYSTRING_H__
#define true 1
#define false 0

typedef struct string mystring;

struct string
{
    char *string;
    int size;
    int cubage;

    void (*print)(mystring *obj);
    int (*size1)(mystring *obj);
    int (*isequal)(mystring *obj1,mystring *obj2);
    int (*iscontains)(mystring *obj1,mystring *obj2);
    char* (*atindex)(mystring *obj,int index);
    void (*removestring)(mystring *obj,const char *p);
    int (*insertstring)(mystring *obj1,const char *p,int index);
    int (*toint)(mystring *obj);
    double(*todouble)(mystring *obj);
    void (*freestring)(mystring *obj);
    int (*reallocarray)(mystring  *obj);
};
int Init_string(mystring *obj, const char *str);

#endif